package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

    
/**
 * 商户代付金额流水明细表 merchant_pay_record
 *
 * @author houyijun
 * @date 2019-01-28
 */
public class MerchantPayRecord extends BaseEntity{
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/** 关联到用户提现记录表的id */
	private Integer relateId;
	/** 生成阿里的结算订单号 */
	private String alipayId;
	/** 本次实际交易金额 */
	private BigDecimal transMoney;
	/** 本次交易手续费 */
	private BigDecimal handMoney;
	/** 交易前金额 */
	private BigDecimal beforeMoney;
	/** 交易后金额 */
	private BigDecimal afterMoney;
	/** 状态 1-打款成功 2-打款失败 */
	private Integer thisStatus;
	/** 失败原因 */
	private String reason;
	/**  */
	private Date createTime;
	/** 修改日期 */
	private Date updateTime;
	/** 删除标识 0-未删除 2-已删除 */
	private Integer delFlag;

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return id;
	}
	public void setRelateId(Integer relateId){
		this.relateId = relateId;
	}

	public Integer getRelateId(){
		return relateId;
	}
	public void setAlipayId(String alipayId){
		this.alipayId = alipayId;
	}

	public String getAlipayId(){
		return alipayId;
	}
	public void setTransMoney(BigDecimal transMoney){
		this.transMoney = transMoney;
	}

	public BigDecimal getTransMoney(){
		return transMoney;
	}
	public void setHandMoney(BigDecimal handMoney){
		this.handMoney = handMoney;
	}

	public BigDecimal getHandMoney(){
		return handMoney;
	}
	public void setBeforeMoney(BigDecimal beforeMoney){
		this.beforeMoney = beforeMoney;
	}

	public BigDecimal getBeforeMoney(){
		return beforeMoney;
	}
	public void setAfterMoney(BigDecimal afterMoney){
		this.afterMoney = afterMoney;
	}

	public BigDecimal getAfterMoney(){
		return afterMoney;
	}
	public void setThisStatus(Integer thisStatus){
		this.thisStatus = thisStatus;
	}

	public Integer getThisStatus(){
		return thisStatus;
	}
	public void setReason(String reason){
		this.reason = reason;
	}

	public String getReason(){
		return reason;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return createTime;
	}
	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	public Date getUpdateTime(){
		return updateTime;
	}
	public void setDelFlag(Integer delFlag){
		this.delFlag = delFlag;
	}

	public Integer getDelFlag(){
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("relateId", getRelateId())
            .append("alipayId", getAlipayId())
            .append("transMoney", getTransMoney())
            .append("handMoney", getHandMoney())
            .append("beforeMoney", getBeforeMoney())
            .append("afterMoney", getAfterMoney())
            .append("thisStatus", getThisStatus())
            .append("reason", getReason())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
